CC = gcc
CFLAGS = -Wall -O2 -I./include

SRCS = $(shell echo *.c)
OBJS = $(SRCS:%.c=%.o)

all: calc

calc: $(OBJS)
	$(CC) -o $@ $^

$(OBJS): ./include/calc.h

.SUFFIXES: .o .c
.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	/bin/rm -f calc $(OBJS)
